import java.util.Scanner;

public class Password {
    public static void main(String[] args) {
        String input = "Hello123";
        System.out.println("加密前的字符串： " + input);
        System.out.println("加密后的字符串： " + encrypt(input));
    }

    public static String encrypt(String input) {
        StringBuilder encrypted = new StringBuilder();
        for (char c : input.toCharArray()) {
            if (Character.isLetter(c)) {
                if (Character.isUpperCase(c)) {
                    encrypted.append((char) (((c - 'A' + 5) % 26) + 'A'));
                } else {
                    encrypted.append((char) (((c - 'a' + 5) % 26) + 'a'));
                }
            } else if (Character.isDigit(c)) {
                encrypted.append((char) (((c - '0' + 5) % 10) + '0'));
            } else {
                encrypted.append(c);
            }
        }
        return encrypted.toString();
    }
}